﻿@{
    ViewBag.Title = "Favorites";
    Layout = "~/Views/Shared/Mobile/_Layout.cshtml";
}
@Html.Partial("~/Views/Shared/Mobile/_Header.cshtml")

<div>
     @using (Html.BeginForm("Favorites", "Account", FormMethod.Post))
        {
             if (User.Identity.IsAuthenticated)
             {
                 
         <ul data-role="listview" data-inset="true" data-theme="d" data-dividertheme="d">

             @foreach (iPick.CustomerFavorite cFavorite in Model.lCustomerFavorites)
             {
                 <li>
                     <div class="ui-btn-inner ui-li">
                         <div class="ui-btn-text">
                             <a href="/Home/IndexDetails/@cFavorite.Catalog.CatalogId" data-transition="slide"  class="ui-link-inherit">
                                 @*<label class="sectionText">
                        You should be able to set any random movies as your favorites and be able to access them from the favorites list...Give us some time, we'll be right back...
                    </label>*@
                                 <span style="float: left">
 <img src="@cFavorite.Catalog.PosterSmall"  />
                                 </span>
                                 <span style="float: right">
                                      @Html.Label(cFavorite.Catalog.Title)<br />
                                      Release Year:@Html.Label(cFavorite.Catalog.ReleaseYear.ToString())<br />
                                        Viewer Rating: @Html.Label(cFavorite.Catalog.ViewerRating) <br />
                                 </span>
                                
                             </a>
                             <a href="@Url.Action("RemoveFavorites", new { customerFavoriteID=cFavorite.CustomerFavoriteID })"><img src="@Url.Content("~/Images/socialmedia/favorite_cicular.png")", alt="Remove From" /></a>
                         </div>
                     </div>
                 </li>
                 }
         </ul>
             }
    }
</div>

